package com.agree.util.excel.entity;

import com.agree.util.excel.enums.TableKeyType;

import java.util.List;

/**
 * Created by wangmu on 2017/11/24.
 * 主键配置类
 */
public class TableKey {

    private TableKeyType tableKeyType = TableKeyType.SINGLE;//主键类型

    private List<TableField> keysField;//主键

    public TableKeyType getTableKeyType() {
        return tableKeyType;
    }

    public void setTableKeyType(TableKeyType tableKeyType) {
        this.tableKeyType = tableKeyType;
    }

    public List<TableField> getKeysField() {
        return keysField;
    }

    public void setKeysField(List<TableField> keysField) {
        this.keysField = keysField;
    }

    @Override
    public String toString() {
        return "TableKey{" +
                "tableKeyType=" + tableKeyType +
                ", keysField=" + keysField +
                '}';
    }
}
